using Microsoft.VisualStudio.TestTools.UnitTesting;
using han;
namespace UnitTestProject1
{
    [TestClass]
    public class UnitTest1
    {
        [TestMethod]
        public void TestMethod1()
        {
            int[] day1 = new int[] { 2021, 6, 1 };
            int[] exp1 = new int[] { 2021, 6, 2 };
            int[] nextday = han.NextClass.CalNextDay(day1);
            Assert.IsTrue(nextday[0] == exp1[0]);
            Assert.IsTrue(nextday[1] == exp1[1]);
            Assert.IsTrue(nextday[2] == exp1[2]);
          
        }

        [TestMethod]
        public void TestMethod2()
        {
            int[] day2 = new int[] { 2021, 6, 30 };
            int[] exp2 = new int[] { 2021, 7, 1 };
            int[] nextday = han.NextClass.CalNextDay(day2);
            Assert.IsTrue(nextday[0] == exp2[0]);
            Assert.IsTrue(nextday[1] == exp2[1]);
            Assert.IsTrue(nextday[2] == exp2[2]);
        }

        [TestMethod]
        public void TestMethod3()
        {
            int[] day3 = new int[] { 2021, 7, 30 };
            int[] exp3 = new int[] { 2021, 7, 31 };
            int[] nextday = han.NextClass.CalNextDay(day3);
            Assert.IsTrue(nextday[0] == exp3[0]);
            Assert.IsTrue(nextday[1] == exp3[1]);
            Assert.IsTrue(nextday[2] == exp3[2]);
        }
        [TestMethod]
        public void TestMethod4()
        {
            int[] day4 = new int[] { 2021, 12, 31 };
            int[] exp4 = new int[] { 2022, 1, 1 };
            int[] nextday = han.NextClass.CalNextDay(day4);
            Assert.IsTrue(nextday[0] == exp4[0]);
            Assert.IsTrue(nextday[1] == exp4[1]);
            Assert.IsTrue(nextday[2] == exp4[2]);

        }

        [TestMethod]
        public void TestMethod5()
        {
            int[] day5 = new int[] { 2020, 2, 28 };
            int[] exp5 = new int[] { 2020, 2, 29 };
            int[] nextday = han.NextClass.CalNextDay(day5);
            Assert.IsTrue(nextday[0] == exp5[0]);
            Assert.IsTrue(nextday[1] == exp5[1]);
            Assert.IsTrue(nextday[2] == exp5[2]);
        }

        [TestMethod]
        public void TestMethod6()
        {
            int[] day6 = new int[] { 2021, 2, 28 };
            int[] exp6 = new int[] { 2021, 3, 1 };
            int[] nextday = han.NextClass.CalNextDay(day6);
            Assert.IsTrue(nextday[0] == exp6[0]);
            Assert.IsTrue(nextday[1] == exp6[1]);
            Assert.IsTrue(nextday[2] == exp6[2]);
        }
    }
}
